package com.topnav.mc.admin.dao.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.topnav.mc.admin.entity.DevicePositionTemp;
import com.topnav.mc.base.mc.McMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DevicePositionTempMapper extends McMapper<DevicePositionTemp,DevicePositionTemp,DevicePositionTemp> {

    String commSql = " SELECT d.* " +
            " FROM mc_device_position_temp d " +
            " ${ew.customSqlSegment}";


    @Select(commSql)
    DevicePositionTemp selectInfoOne(@Param(Constants.WRAPPER) Wrapper queryWrapper);

    @Select(commSql)
    List<DevicePositionTemp> selectInfoList(@Param(Constants.WRAPPER) Wrapper queryWrapper);

    @Select(commSql)
    Page<DevicePositionTemp> selectInfoPage(Page<DevicePositionTemp> page, @Param(Constants.WRAPPER) Wrapper queryWrapper);
}
